package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.DriverRebatePaymentRecord;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface DriverRebatePaymentRecordService {

    /**
     * 保存司机充值信息
     *
     * @return
     */
    public DriverRebatePaymentRecord insertRecord(DriverRebatePaymentRecord record);

    /**
     * 根据主键查询司机充值信息
     *
     * @param id
     * @return
     */
    public DriverRebatePaymentRecord findOne(Long id);

    /**
     * 查询app首页数据
     *
     * @return
     */
    public List<DriverRebatePaymentRecord> listIndexPayments(Long driverId, Date start, Date end);

    public Page<DriverRebatePaymentRecord> queryByEmploy(Long driverId, String recordType,
        Date start, Date end, Integer page, Integer limit);

    public List<DriverRebatePaymentRecord> listByEmploy(Long driverId, String recordType,
        Date start, Date end);

    public BigDecimal sumInComeByEmployWithDate(Long driverId, Date begin, Date end);

    public BigDecimal sumRebateByEmployWithDate(Long driverId, Date begin, Date end);

    public DriverRebatePaymentRecord findOrderRecharge(Long driverId, Long orderId,
        Integer orderType);
}
